package com.aorise.model.order;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * @Author:psl
 * @Desicription: 维修工单新增入参实体类
 * @Date:Created in  2019-06-04.
 * @Modified By:
 */
@Data
@ApiModel
public class WorkOrderAddVO {

    @ApiModelProperty(value = "主键")
    private Integer id;

    @ApiModelProperty(value = "工单编号")
    private String wNumber;

    @ApiModelProperty(value = "运维人员ID")
    private Integer maintUser;

    @ApiModelProperty(value = "运维人员姓名")
    private String maintUserName;

    @ApiModelProperty(value = "要求完成时间")
    private String finishTime;

    @ApiModelProperty(value = "描述")
    private String describe;

    @ApiModelProperty(value = "工单状态：1待接单，2处理中，3退回，4待确认，5未通过，6完成")
    private Integer wStatus;

    @ApiModelProperty(value = "状态：1启用，-1删除")
    private Integer state;

    @ApiModelProperty(value = "创建人")
    private Integer createUser;

    @ApiModelProperty(value = "修改人")
    private Integer editUser;

    @ApiModelProperty (value = "工单设备信息(ID;异常类型;报警时间,)")
    @NotNull(message = "工单设备信息不能为空")
    private String cameras;

    @Override
    public String toString() {
        return "WorkOrderAddVO{" +
                ", id='" + id + '\'' +
                ", wNumber='" + wNumber + '\'' +
                ", maintUser='" + maintUser + '\'' +
                ", maintUserName='" + maintUserName + '\'' +
                ", finishTime='" + finishTime + '\'' +
                ", describe='" + describe + '\'' +
                ", wStatus='" + wStatus + '\'' +
                ", state='" + state + '\'' +
                ", createUser='" + createUser + '\'' +
                ", editUser='" + editUser + '\'' +
                ", cameras='" + cameras + '\'' +
                '}';
    }

}
